package domain;

public class OrderItem {
    private Order order;//订单
    private Product product;//产品
    private int buyNum;//单个商品的购买数量

    public OrderItem() {
    }

    public OrderItem(Order order, Product product, int buyNum) {
        this.order = order;
        this.product = product;
        this.buyNum = buyNum;
    }

    public Order getOrder() {
        return order;
    }

    public void setOrder(Order order) {
        this.order = order;
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public int getBuyNum() {
        return buyNum;
    }

    public void setBuyNum(int buyNum) {
        this.buyNum = buyNum;
    }
}
